package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
        import java.math.BigDecimal;
import java.util.List;

/**
* <p>
* 百盛订单明细表
* </p>
*
* @author huangrensen
* @since 2024-09-04
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BsOmsOrderDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 买家实付金额
     */
    private BigDecimal buyerPaidAmount = BigDecimal.ZERO;

    /**
     * 卖家实收金额
     */
    private BigDecimal sellerIncomeAmount = BigDecimal.ZERO;

    /**
    * 订单ID
    */
    private String oId;
    @TableField(exist = false)
    private List<String> oIdList;

    /**
     * 原始线上订单号
     */
    private String rawSoId;


    /**
     * 线上子订单编号
     */
    private String outerOiId;


    /**
    * 子订单编号
    */
    private String oiId;


    /**
    * 商品编码
    */
    private String skuId;


    /**
    * 数量
    */
    private Integer qty = 0;


    /**
    * 商品单价
    */
    private BigDecimal price = BigDecimal.ZERO;


    /**
    * 商品金额
    */
    private BigDecimal amount = BigDecimal.ZERO;


    /**
    * 原价
    */
    private BigDecimal basePrice = BigDecimal.ZERO;


    /**
    * 是否赠品
    */
    private String zp;


    /**
    * 品牌
    */
    private String brand;

    @TableField(exist = false)
    private String tableName;
}
